package com.guigu.qingcheng.handler;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @ClassName SkuElasticSearchHandler
 * @Description 服务发现
 * @Author Simon
 * @Date 2020/8/20 14:33
 * @Version 1.0
 **/
@FeignClient("service-goods")
@Component
public interface SkuElasticSearchHandler {

    @ApiOperation(value = "简单的es查询")
    @GetMapping("/goods/sku/search")
    public Map searchSkuES(@RequestParam Map<String, String> map);

}
